#define _CRT_SECURE_NO_WARNINGS 1

//https://leetcode.cn/problems/happy-number/

class Solution {
public:
    int happy(int num) {
        int x = 0;
        while (num != 0) {
            x = x + num % 10 * num % 10;
            num = num / 10;
        }
        return x;
    }
    int arr[]
        bool isHappy(int n) {
        while (n != 1) {
            n = happy(n);

        }
    }
};